apiVersion: v1
kind: Endpoints
metadata:
  labels:
    k8s-app: kube-controller-manager
  name: kube-controller-manager
  namespace: kube-system
subsets:
- addresses:
{% for host in groups['master'] %}
  - ip: {{ hostvars[host].inventory_hostname }}
{% endfor %}
  ports:
  - name: http-metrics
    port: 10252
    protocol: TCP